package com.hm.service.Impl;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.hm.model.Employee;
import com.hm.service.RedisService;
@Service
public class RedisServiceImpl implements RedisService{

	@Override
	@Cacheable
	public Employee getEmployee() {
		System.out.println("我被调用了");
		Employee employee = new Employee();
		employee.setname("张小花");
		return employee;
	}

}
